From 8296774355d2f46c8650ba97a4665bbbe69b4e78 Mon Sep 17 00:00:00 2001 From: Scott Bradford Date: Mon, 28 Mar 2016 16:24:33 -0400 Subject: [PATCH] Setting encoding to UTF-8. It will read files fine this way...but it writes them in the wrong encoding. The device expects UTF-16 LE (UCS-2 LE BOM), which isn't apparently supported by GPSBabel. The file is otherwise correct. --- internal_styles.cc | 2 +- style/igoprimo_poi.style | 2 +- xmldoc/formats/igoprimo_poi.xml | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/internal_styles.cc b/internal_styles.cc index 0d2ef31e1..dfede78dc 100644 --- a/internal_styles.cc +++ b/internal_styles.cc @@ -750,7 +750,7 @@ static char igoprimo_poi[] = "FIELD_DELIMITER PIPE\n" "RECORD_DELIMITER CR\n" "BADCHARS \"|\n" - "ENCODING windows-1252\n" + "ENCODING UTF-8\n" "#\n" "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n" "#\n" diff --git a/style/igoprimo_poi.style b/style/igoprimo_poi.style index 3140a2d6d..abfb9617d 100644 --- a/style/igoprimo_poi.style +++ b/style/igoprimo_poi.style @@ -13,7 +13,7 @@ DATATYPE WAYPOINT FIELD_DELIMITER PIPE RECORD_DELIMITER CR BADCHARS "| -ENCODING windows-1252 +ENCODING UTF-8 # # INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE: # diff --git a/xmldoc/formats/igoprimo_poi.xml b/xmldoc/formats/igoprimo_poi.xml index c5ffa7d46..aab18b03c 100644 --- a/xmldoc/formats/igoprimo_poi.xml +++ b/xmldoc/formats/igoprimo_poi.xml @@ -3,3 +3,9 @@ navigation' devices. iGo Primo is GPS Navigation Software that runs on Windows embedded platforms, and is used in some OEM and aftermarket automotive head units. + + NOTE: GPSBabel should seamlessly read and convert .upoi files from your device. However, + when converting to .upoi format, GPSBabel will encode as UTF-8, which the device won't read + correctly. You will need to manually convert the output file to UTF-16 LE (UCS-2 LE BOM) + encoding using a text editor, and then it will work as expected. + -- 2.30.2